package com.my.order;

import com.my.common.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class OrderMainApplication {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("consumer.xml");
        OrderService orderService = applicationContext.getBean("orderServiceImpl", OrderService.class);
        orderService.initOrder(1);
        System.out.println("调用完成");
        System.out.println("----------------");
        orderService.initOrderVersion(1);
        System.out.println("调用完成 version");
        System.out.println("-----------------");
        System.out.println("按enter键结束...");
        System.in.read();
    }
}
